package com.weipai.demo.controller;

import com.weipai.demo.service.RecommendShowService;
import com.weipai.demo.util.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 赵项阳
 * @Date: 2019/6/17 18:30
 * @Version 1.0
 */
//APP介绍接口
@RestController
public class RecommendController {

    @Autowired
    private RecommendShowService recommendShowService;

    //展示介绍接口
    @RequestMapping(value = "/recommend/show")
    public Response show(){
        return recommendShowService.show();
    }

    //填写介绍接口
    @RequestMapping("/recommend/write")
    public Response write(String recommend,Integer id){
       return recommendShowService.write(recommend,id);

    }
}
